﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MVC.Models {
  public class PCDbContext :DbContext{
    public PCDbContext(DbContextOptions<PCDbContext> options):base(options) {

    }
    public DbSet<Student> Students { get; set; }
    public DbSet<Teacher> Teacher { get; set; }
    protected override void OnModelCreating(ModelBuilder modelBuilder) {
      ModelBuilderExtensions.Seed(modelBuilder);
    }
  }
}
